import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Switch, Route } from 'react-router-dom'

import Msg from './message'
import Notify from './notify'
import Header from './newsHeader'

class Com extends Component {
  state = {
    value: ''
  }

  render() {
    return (
      <>
      <Header />
        <div className="content">
          <Switch>
            <Route component={ Msg } path='/news/msg'/>
            <Route component={ Notify } path='/news/notify'/>
          </Switch>
        </div>
      </>
    )
  }
}
export default connect()(Com)